﻿// TabControl1.cpp: 实现文件
//

#include "pch.h"
#include "CGateway.h"
#include "TabControl1.h"
#include "afxdialogex.h"


// TabControl1 对话框

IMPLEMENT_DYNAMIC(TabControl1, CDialogEx)

TabControl1::TabControl1(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DIALOG1, pParent)
	, m_port(0)
	, m_key(_T(""))
{

}

TabControl1::~TabControl1()
{
}

void TabControl1::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_PORT, m_port);
	DDX_Text(pDX, IDC_EDIT_KEY, m_key);
}


BEGIN_MESSAGE_MAP(TabControl1, CDialogEx)
	ON_BN_CLICKED(IDOK, &TabControl1::OnBnClickedOk)
END_MESSAGE_MAP()


// TabControl1 消息处理程序


void TabControl1::OnBnClickedOk()
{
	// TODO: 在此添加控件通知处理程序代码
	//AfxMessageBox("123");
	//CDialogEx::OnOK();

//	GatewayFun GatewayFundlg;
//	GatewayFundlg.InitSocket(m_page1.m_port);
}
